﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace TileEngine.liquids
{
    class Lava:Iliquid
    {
        int spriteFrame = 0;
        float particle = 10;
        public double getLightAbsorption()
        {
            return 0.95;
        }
        public float getParticle()
        {
            return particle;
        }
        public void setParticle(float n)
        {
            this.particle = n;
        }
        public void addParticle(float n)
        {
            this.particle += n;
        }
        public void draw(SpriteBatch spriteBatch, Rectangle destinationRectangle, Color tint)
        {
            spriteBatch.Draw(Textures.liquid[spriteFrame], destinationRectangle, Color.Red);
            spriteFrame = (spriteFrame + 1) % 3;
        }
    }
}
